package com.lijiaxing.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * {@code
 *
 * @description 用户pojo类
 * }
 */
@Data
@AllArgsConstructor
public class UserRes {
    private Integer total;
    private UserRes.User[] data;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class User {
        private String uid;
        private String uname;
        private String utel;
        @JsonIgnore
        private String upwd;
        private String create_time;
        private Integer active;
        private Integer pid;
        private String avatar;

        public User paramEncrypt() {
            this.upwd = null;
            this.create_time = null;
            return this;
        }
    }
}
